package group.resource.controller;


import group.resource.entity.SysResource;
import group.resource.service.SysResourceService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author whx
 * @since 2021-04-21
 */
@RestController
@RequestMapping("/resource/")
public class SysResourceController {
    private Logger logger = Logger.getLogger(SysResourceController.class);

    @Autowired
    private SysResourceService sysResourceService;

    @RequestMapping("query")
    public void queryResource(){
        int id = 1;
        SysResource sysResource = sysResourceService.queryResource(id);
        logger.debug("查询结果"+sysResource);
    }

}
